@import '~@style/common.scss';

.project-report-preview {
  min-width: 1200px;
  height: 100%;
  overflow-y: hidden;
  position: relative;

  &-header {
    padding: 32px 80px;
    .header-title {
      font-size: 24px;
      font-weight: 500;
      white-space: nowrap;
      text-align: center;
      text-overflow: ellipsis;
    }
    .header-btns {
      text-align: right;
      margin-top: 16px;
      .mtd-button:not(:first-child) {
        margin-left: 16px;
      }
    }
  }

  .preview-anchor {
    position: absolute;
    right: 80px;
    top: 130px;
    z-index: 11;
    overflow: hidden;
    width: 100px;
  }

  &-content {
    position: relative;
    padding: 0 190px 100px 80px;
    height: calc(100% - 130px);
    overflow: auto;

    .preview-module {
      margin-bottom: 32px;

      &-title {
        font-family: PingFangSC-Medium;
        font-size: 18px;
        color: $color-text-1;
        font-weight: 500;
        line-height: 22px;
        margin-bottom: 16px;
      }

      &-content {
        white-space: pre-wrap;
        word-break: break-all;

        .findings-group {
          &-title {
            font-weight: 500;
            color: $color-text-1;
            margin-bottom: 16px;
          }
          .findings-item {
            margin: 0 0 12px 20px;
            display: flex;
            justify-content: start;

            &-num {
              color: $color-text-3;
              margin-right: 12px;
              flex-shrink: 0;
            }
            &-level {
              margin-right: 12px;
              flex-shrink: 0;
              .mtd-tag {
                height: 22px;
              }
            }
            &-btn {
              flex-shrink: 1;
              text-align: left;
              text-overflow: ellipsis;
            }
          }
        }
      }
    }

    /** 附录卡片默认样式更改 */
    .mtd-collapse {
      border: none;
      .mtd-collapse-item {
        border: none;
      }
    }
  }
}
